<%@page import="java.util.UUID"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp" %>
<%
    String uuid = UUID.randomUUID().toString();
    request.setAttribute("uuid", uuid);
%>
<div class="container-fluid am-margin-top">
	<form id="selTimeForm">
		<div class="row">
			<div class="col-md-12">
				<div class="form-group"><label>延缓派单时间</label>
					<input type="text" class="form-control"  name="yhsj" check-type="required"/>
				</div>
			</div>
		</div>
	</form>
	<nav class="navbar navbar-default">
	  <div class="container-fluid">
	  	<div class="collapse navbar-collapse">
	  		<ul class="nav navbar-nav navbar-right">
		  		<li>
		  			<button type="button" class="btn btn-primary navbar-btn" id="selTimeBtn">确定</button>
		  		</li>
		  	</ul>
        </div>
	  </div>
	</nav>
</div>
<script type="text/javascript">
	
    $(function () {
    	var winId = '${param.winId}';
    	$("#selTimeForm").validation();
    	$("input[name=yhsj]").datetimepicker({
        	format: 'YYYY-MM-DD HH:mm',
            locale: "zh-cn"
        });
    	$("#selTimeBtn").click(function(){
	    	if($("#selTimeForm").valid()){
	    		var data = {selTime:$("input[name=yhsj]").val()};
	    		top.webUtils.topicPublish("dialog.submit.success."+winId, data);
	    	}
    	});
    });    
</script>
